TextPipe: Online Help
    Converting Search/Replaces from other sources
 

Submit feedback on this topic 

 Home  User Assistance   Tutorials   How to Use TextPipe
 Menus: File   Edit   Filters[ Convert   Add   Remove   Unicode   Replace   Special   Map   Email   Restrict ]  Tools   Window   Help   Advanced
Home
Up

 

 

If you have search/replace pairs in Perl script or text files from other Search/Replace packages, you can use a simple procedure to convert them to TextPipe. You can also add a list of search and replace pairs through the user interface.

Edit the file into the following form

/S=<search string>
/R=<replace string>
/S=<search string 2>
/R=<replace string 2>
/S=<search string 3>
/R=<replace string 3>

..etc

You could even use TextPipe to do this for you!

Save this edited script to a file (call it import.txt). Then start TextPipe as follows:

textpipe.exe /z=import.txt

This effectively reads command-line parameters from a file instead of from the command line. Quotes are not required for search/replace strings with embedded spaces.

If you know that the original source uses Regular Expressions, then you can replace the

/S=<search string>

with

/SX=<pattern string>

Typically, regular expression matches are case-sensitive, so you could also use

/SCX=<case-sensitive pattern>

to ensure the original search/replace is unchanged.

This is the exact procedure used to import TextPipe's Jive, Kraut and Elmer Fudd filters from a variety of sources.

 

 

 Contact Us   Support   Community   Tutorials and User Guides (online)
 © 1999-2005 Crystal Software. All rights reserved.